package com.hawthorn.admin.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hawthorn.admin.model.po.SysDealerPO;
import com.hawthorn.admin.repository.provider.SysDealerSqlProvider;
import com.hawthorn.platform.repository.DBMapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>todo 渠道商档案表(sys_dealer) Mapper 接口</p>
 * @author: zhouxin@expservice.com.cn
 * @created: 2022-07-08 3:38 PM
 * @lasted: 2022-07-21 9:40 AM
 * @version v1.0.2
 */
@Repository
public interface SysDealerMapper extends DBMapper<SysDealerPO> {

  /**
   * 查询门店方法
   *
   * @param page
   * @param qc
   * @return
   */
  @SelectProvider(SysDealerSqlProvider.class)
  public IPage<Map<String, Object>> find(Page<Map<String, Object>> page, String qc);

  /**
   * 导出门店方法
   *
   * @param fields
   * @param qc
   * @return
   */
  @SelectProvider(SysDealerSqlProvider.class)
  public List<Map<String, Object>> export(String fields, String qc);
}
